package cn.stylefeng.guns.modular.ercomment.service;

import cn.stylefeng.guns.core.pojo.page.PageResult;
import cn.stylefeng.guns.modular.ercomment.entity.ErComment;
import cn.stylefeng.guns.modular.ercomment.entity.ErCommentLove;
import cn.stylefeng.guns.modular.ercomment.model.param.ErCommentParam;
import cn.stylefeng.guns.modular.erlove.model.param.ErLoveParam;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 评论 服务类
 *
 * @author wpk
 * @date 2021/06/25 15:19
 */
public interface ErCommentService extends IService<ErComment> {

    /**
     * 查询评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    PageResult<ErComment> pageComment(ErCommentParam erCommentParam);

    /**
     * 查询所有评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    List<ErComment> list(ErCommentParam erCommentParam);

    /**
     * 添加评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    ErComment add(ErCommentParam erCommentParam);

    /**
     * 删除评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    void delete(ErCommentParam erCommentParam);

    /**
     * 编辑评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    void edit(ErCommentParam erCommentParam);

    /**
     * 点赞
     *
     * @author w
     * @date 2021/06/11 15:02
     */
    int love (ErCommentParam erCommentParam);

    //获取点赞状态
    int showLoveState (ErCommentParam erCommentParam);



    /**
     * 查看详情评论
     *
     * @author wpk
     * @date 2021/06/25 15:19
     */
    ErComment detail(ErCommentParam erCommentParam);

}